# Docker 镜像构建
FROM maven:3.5-jdk-8-alpine as builder

# Copy local code to the container image.
WORKDIR /app
COPY pom.xml .
COPY src ./src

# Build a release artifact.
#RUN mvn package -DskipTests
COPY ./target/pikimbi-backend-1.0.0.jar pikimbi-backend-1.0.0.jar

# Run the web service on container startup.
CMD ["java","-jar","/app/pikimbi-backend-1.0.0.jar","--spring.profiles.active=prod"]